package org.nci.platform.workflow.expand.system.service.impl;

import com.alibaba.fastjson2.JSON;
import org.nci.platform.workflow.expand.system.entity.WorkflowCategory;
import org.nci.platform.workflow.expand.system.service.WorkflowCategoryService;

import java.util.List;

public class DemoCategoryImpl implements WorkflowCategoryService {
    String data="[{\"label\":\"通用\",\"value\":\"common_flow\"},{\"label\":\"专用\",\"value\":\"fix\"}]";

    @Override
    public List<WorkflowCategory> selectCategoryList() {
        return JSON.parseArray(data, WorkflowCategory.class);
    }
}
